import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/lib/locale/lang/zh-cn';
import 'default-passive-events';
import DataVVue3 from '@kjgl77/datav-vue3';

import App from './App.vue';

const app = createApp(App);
import router from './router';
import store from './store';

// svgPlugins加载所有svg资源
import '@/components/common/svgPlugins';
// svgPlugin组件
import SvgIcon from '@/components/common/svgPlugins/SvgIcon';

import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import './index.less';

// 集成elementPlus
app.use(ElementPlus, { zhCn });
// 集成DataV
app.use(DataVVue3);
// 集成VueX
app.use(store);
// 集成router
app.use(router);
// 集成svg-icon
app.component('svg-icon', SvgIcon);

app.mount('#app');
